
{{if data.goods}}
    {{each data.goods as zitem}}
        <div class="row m-t-sm">
            <div class="col-sm-10 m-t-xs">
            <span class="pull-left v-middle"><img class="thumb_img m-r-sm" src="{{zitem.imgsrc}}" style="height: 60px;width:60px;"></span><div class="pull-left m-t-md" style="overflow:hidden;width:400px;height:20px;text-overflow:ellipsis;white-space:nowrap;" title="{{zitem.name}}">{{zitem.name}}</div></div>
            <div class="col-sm-2 m-t-md">
                {{if types=="copy"}}
                    <span class="js_link_copy_text copy_text m-r">
                        <span class="hd js_random_result">{{zitem.url}}</span>
                    </span>
                {{else}}
                    <button type="button" data-id="{{zitem.id}}" data-name="商品>{{zitem.name}}" data-link="{{zitem.url}}" class="btn btn-default btn-sm js_alllink_select">选择链接</button>
                {{/if}}
                
            </div>
        </div>
    {{/each}}
{{else}}
    <div class="row m-t-sm text-center">暂无数据</div>
{{/if}}

{{if data.count>0}}
<footer class="footer bg-white b-t m-t-sm" data-type="ajaxPage">
  <div class="row text-center-xs">
      <div class="col-md-6 hidden-sm">
          <p class="text-muted m-t">总共{{data.count}}条 当前为第{{data.currentPage}}页</p>
      </div>
      <div class="col-md-6 col-sm-12 text-right text-center-xs">
          <ul class="pagination pagination-sm m-t-sm m-b-none" data-apages-total="{{data.totalPage}}" data-apage-current="{{data.currentPage}}">

            <li {{if data.currentPage==1}} class="disabled"{{/if}}>
              <a href="javascript:;" rel="first" data-page-num="1"><i class="fa fa-angle-double-left" title="第一页"></i></a>
            </li>
            <li {{if data.currentPage==1}} class="disabled"{{/if}}>
              <a href="javascript:;" rel="prev" data-page-num="{{data.currentPage-1}}"><i class="fa fa-angle-left" title="上一页"></i></a>
            </li>
            {{each data.pagelist as item}}
              <li {{if data.currentPage==item}} class="active"{{/if}}>
                <a href="javascript:;" data-page-num="{{item}}" data-page-isnum="true">{{item}}</a>
              </li>
            {{/each}}
            <li {{if data.currentPage==data.totalPage}} class="disabled"{{/if}}><a href="javascript:;" rel="next" data-page-num="{{data.currentPage+1}}"><i class="fa fa-angle-right" title="下一页"></i></a></li>
            <li {{if data.currentPage==data.totalPage}} class="disabled"{{/if}}><a href="javascript:;" rel="last" data-page-num="{{data.totalPage}}"><i class="fa fa-angle-double-right" title="最后页" ></i></a></li>
          </ul>
      </div>
  </div>
</footer>
{{/if}}